package DefAndVal.case5

/**
  * @author juntao zhang
  */
class Test {
  def fun1(x: Int): Int = {
    def fun1_2() = {
      println("fun1_2=>" + x)
    }

    fun1_2()
    println("fun1")
    2 * x
  }

  val fun2 = (x: Int) => {
    val fun2_2 = () => {
      println("fun2_2=>" + x)
    }
    fun2_2()
    println("fun2")
    2 * x
  }
}
